import { http } from '@/utils/http'

interface DictData {
  createBy: string
  createTime: string
  cssClass: string
  default: boolean
  dictCode: number
  dictLabel: string
  dictSort: number
  dictType: string
  dictValue: string
  isDefault: string
  listClass: string
  remark: string
  status: string
  updateBy?: any
  updateTime?: any
}

/**
 * 查询字典数据
 * @param dictCode 字典类型
 * @returns 字典数据
 */
export function dictList(dictType: string) {
  return http.get<DictData>(`/system/dict/data/type/${dictType}`)
}
